package com.example.common.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 需求
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Demand {
    private long id;
    private String lable; //需求内容，也可理解为标签
    private double money; //预算金额
    private String phone; //发起人手机号码
    private int status; //当前状态
    private String description; //需求具体描述
    private int companyId; //需求发起公司id

    //根据工作室id搜索竞标情况时用到
    public Demand(long id, String lable, double money, String phone, String description) {
        this.id = id;
        this.lable = lable;
        this.money = money;
        this.phone = phone;
        this.description = description;
    }

    public Demand(long nextId, String lable, double money, String phone, int i, String description) {
        this.id = nextId;
        this.lable = lable;
        this.money = money;
        this.phone = phone;
        this.description = description;
        this.status = i;
    }
}
